package decorator.battercake.v1;


/**
 * @author zhuohb
 */
public class BattercakeWithEgg extends Battercake {
    @Override
    protected String getMsg() {
        return super.getMsg() + "+1个鸡蛋";
    }

    /**
     * 鸡蛋加钱
     *
     * @return
     */
    @Override
    public int getPrice() {
        return super.getPrice() + 1;
    }
}
